# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: 04_装饰器.py
# Time: 21:33

def w1(func):
    def inner():
        print("————正在验证权限————")
        if False:
            func()
        else:
            print("么有权限")
    return inner
# 等价于：w1(f1)5
@w1
def f1():
    print("____f1____")

if __name__ == '__main__':
    f1()

